package com.cloud.client;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableHystrix
public class ClientApplication {

    private static Logger logger = LoggerFactory.getLogger(ClientApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(ClientApplication.class, args);
        logger.info("|-------------------------------------------------------------------------------------------------|");
        logger.info("|-----------------------------                                         ---------------------------|");
        logger.info("|<--------------- ღ( ´･ᴗ･` ) |         client system start success    | ( ´･ᴗ･` )ღ--------------->|");
        logger.info("|<--------------- ღ( ´･ᴗ･` ) |             客 户 端 启 动 完 毕         | ( ´･ᴗ･` )ღ--------------->|");
        logger.info("|-----------------------------                                         ---------------------------|");
        logger.info("|-------------------------------------------------------------------------------------------------|");
    }

}
